package com.dnjn.happiness.emo.controller.admin;


import com.dnjn.happiness.common.log.annotation.Log;
import com.dnjn.happiness.common.log.enums.BusinessType;
import com.dnjn.happiness.common.security.utils.SecurityUtils;
import com.dnjn.happiness.emo.controller.common.CommonEmoHscoreLogController;
import com.dnjn.happiness.emo.service.IEmoHscoreLogService;
import com.dnjn.happiness.emo.service.IUserModelScoreService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

@Tag(name = "emo admin scoreLog 快乐分波动记录", description = "快乐分波动记录")
@RestController
@RequestMapping("/admin/emo/scoreLog")
public class AdminEmoHscoreLogController extends CommonEmoHscoreLogController {


    @Autowired
    private IEmoHscoreLogService emoHscoreLogService;

    /**
     * 导出快乐分波动记录列表
     */
    @Log(title = "快乐分波动记录", businessType = BusinessType.EXPORT)
//    @RequiresPermissions("@ss.hasPermi('emo:scoreLog:export')" )
    @PostMapping("/export")
    public void export(HttpServletResponse response) {
        Long deptId = SecurityUtils.getLoginUser().getDeptId();
        emoHscoreLogService.getExport(response,deptId);
    }


}
